<?php
namespace common\models;
use yii\db\ActiveRecord;
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/2/26
 * Time: 10:00
 */
class Log extends ActiveRecord {
    public static function tableName()
    {
        return "log";
    }

    public function attributeLabels()
    {
        return
            [
                'log_id'=>'操作id',
                'admin_name'=>'操作人',
                'operation_ip'=>'操作的ip地址',
                'log_time'=>'操作时间',
                'log_content'=>'操作内容',
                'jursid_type'=>'类型',
            ];

    }
    public function rules()
    {
        return[
            // name, email, subject 和 body 属性必须有值
            [['admin_name', 'operation_ip', 'log_time','log_content','jursid_type'], 'required'],
        ];
    }
}
